package com.kymatrix.kycarbon.xsmd.system.server.model.form.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import lombok.Data;

@ApiModel("登录请求")
@Data
public class LoginReq {

    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码", required = true)
    @NotEmpty(message = "验证码不能为空")
    private String captcha;

    @ApiModelProperty(value = "key", required = true)
    @NotEmpty(message = "key不能为空")
    private String checkKey;

    @ApiModelProperty(value = "自动登录")
    private Boolean autoLoginFlag = false;
}
